<template>
    <page-body>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center orderMessage_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub orderMessage_fd0_0'>
                    <view class='flex flex-wrap align-center orderMessage_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  orderMessage_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <view class='flex flex-wrap align-stretch justify-center'>
                        <text class='orderMessage_fd0_0_c1_c0'>订单消息</text>
                    </view>
                    <view class='flex flex-wrap align-center justify-end orderMessage_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

            <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout orderMessage_flex_1">
                <template v-for='(item,key0) in list'>
					<!-- @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/order/detailsDd/detailsDd`" -->
                    <view class='flex flex-direction align-stretch orderMessage_fd1_0'  :key='key0' @tap.stop="tiaozhuan(item)">
                        <text class='orderMessage_fd1_0_c0'>{{item.title}}</text>
                        <text class='self-end orderMessage_fd1_0_c1'>{{item.create_time}}</text>
                        <!-- <view class='flex flex-wrap align-center orderMessage_fd1_0_c2'>
                        </view> -->
                    </view>
                </template>
                <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
            </view>




        </view>
    </page-body>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},
        mixins: [pagingList],

        data() {
            return {
                "minixPagingListsApi": "",
                "pageingListApiMethod": "",
                "allowOnloadGetList": false,
                "list": [],
				tabberType:1,
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {
			if(uni.getStorageSync('tabberType')){
				this.tabberType = uni.getStorageSync('tabberType')
			}
        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {
            this.getgx462dfb221172Func()
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
			tiaozhuan(item){
				if(this.tabberType == 1){
					if(item.is_del_order != 1){
						if(item.sub_type == 1){
							this.$urouter.navigateTo(`/pages/order/detailsDd/detailsDd?order_sn=${item.order_sn}&order_id=${item.sub_id}&orderType=1`);
						}else if(item.sub_type == 2){
							this.$urouter.navigateTo(`/pages/order/legDdXq/legDdXq?order_sn=${item.order_sn}&order_id=${item.sub_id}&orderType=2`);
						}
					}
					
				}else{
					if(item.order_status == 3){
						if(item.is_del_order != 1){
							if(item.sub_type == 1){
								this.$urouter.navigateTo(`/pages/riderOrder/robOrder/robOrder?order_sn=${item.order_sn}&order_id=${item.sub_id}&orderType=1`);
							}else if(item.sub_type == 2){
								this.$urouter.navigateTo(`pages/riderOrder/robOrder/robOrder?order_sn=${item.order_sn}&order_id=${item.sub_id}&orderType=2`);
							}
						}
						
						
					}else{
						if(item.is_del_order != 1){
							if(item.sub_type == 1){
								this.$urouter.navigateTo(`/pages/riderOrder/meetOrder/meetOrder?order_sn=${item.order_sn}&type=1&aid=${item.sub_id}`);
							}else if(item.sub_type == 2){
								this.$urouter.navigateTo(`/pages/riderOrder/meetOrder/meetOrder?order_sn=${item.order_sn}&type=2`);
							}
						}
					}
				}
			},
            //查询平台公告
            getgx462dfb221172Func() {
                this.minixPagingListsApi = global.apiUrls.post649037b2c6317;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {
                    type: this.tabberType == 1 ? 1 : 3
                }
                this.listData = [];
                this.list = this.listData;
                this.pagingListToggle();

            },
            pagingListPostData() {
                return this.pagingListPostDataContent
            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: #F8F8F8;
        background-size: 100% auto;
    }

    .orderMessage_flex_0 {
        background: #fff;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .orderMessage_fd0_0_c1_c0 {
        font-size: 36rpx;
        font-weight: 500;
        color: #333;
        line-height: 88rpx;
    }

    .orderMessage_fd0_0_c0_c0 {
        font-size: 36rpx;
        color: #333;
    }

    .orderMessage_fd0_0_c0 {
        width: 120rpx;
        height: 88rpx;
    }

    .orderMessage_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
        height: 88rpx;
    }

    .orderMessage_flex_1 {
        padding: 24rpx 32rpx 0rpx 32rpx;
    }

    .orderMessage_fd1_0_c2 {
        background: rgba(243, 51, 51, 1);
        position: absolute;
        width: 18rpx;
        height: 18rpx;
        border-radius: 18rpx;
        background-size: 100% auto !important;
        right: 10rpx;
        top: 24rpx;
    }

    .orderMessage_fd1_0_c1 {
        line-height: 33rpx;
        font-size: 24rpx;
        font-weight: 400;
        color: #999999;
        margin: 24rpx 0rpx 0rpx 0rpx;
    }

    .orderMessage_fd1_0_c0 {
        line-height: 40rpx;
        font-size: 28rpx;
        font-weight: 500;
        color: #333333;
        // -webkit-line-clamp: 1;
        // overflow: hidden;
        // text-overflow: ellipsis;
        // display: -webkit-box;
        // -webkit-box-orient: vertical;
        margin: 0rpx 20rpx 0rpx 0rpx;
    }

    .orderMessage_fd1_0 {
        background: #fff;
        padding: 32rpx 24rpx 32rpx 24rpx;
        background-size: 100% auto !important;
        margin: 0rpx 0rpx 24rpx 0rpx;
        position: relative;
        border-radius: 16rpx;
    }
</style>